package com.storm.explore.controller;

import com.storm.explore.entity.Cloud;
import com.storm.explore.entity.Wind;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @author gu
 * @date 2020/4/22 16:56
 */
@RestController
public class WindRestController {

    @GetMapping("wind/road")
    public String road(){
        return "I have been unable to extricate myself from the size of the world";
    }

    @PostMapping("wind/wind")
    public String wind(Wind wind,Cloud cloud){
        System.out.println(wind);
        System.out.println(cloud);
        return "Walk against the light, let the wind and rain beat";
    }

    @PostMapping("wind/body")
    public String wind(@RequestBody Wind wind){
        System.out.println(wind);
        return "Walk against the light, let the wind and rain beat";
    }
}
